//
//  LYQTopicListCell.m
//  ZCProject
//
//  Created by Zheng on 2016/12/20.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQTopicListCell.h"

@implementation LYQTopicListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    //内容
    _infoLbl.font = kWFont(16);
    _infoLbl.textColor = kLYQBlack;
    _infoLbl.numberOfLines = 0;
    
    [_infoLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(kWScale(10));
        make.right.mas_equalTo(-kWScale(10));
        make.top.mas_equalTo(kWScale(25));
        make.bottom.equalTo(_iconImgv.mas_top).offset(-kWScale(15));
    }];
    
    //头像
    _iconImgv.backgroundColor = kLYQBlue;
    _iconImgv.layer.cornerRadius = kWScale(22.5);
    _iconImgv.layer.borderColor = [RGB(230, 230, 230, 1) CGColor];
    _iconImgv.layer.borderWidth = kWScale(1.5);
    
    [_iconImgv mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-kWScale(10));
        make.left.mas_equalTo(kWScale(10));
        make.height.width.equalTo(@(kWScale(45)));
    }];
    
    //名字和职位
    _nameLbl.text = @"王磊  l  CTO";
    _nameLbl.font = kWFont(16);
    _nameLbl.textColor = kLYQBlack;
    
    [_nameLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_iconImgv.mas_right).offset(kWScale(12));
        make.centerY.equalTo(_iconImgv);
    }];
    
    //公司名
    _companyLbl.font = kWFont(15);
    _companyLbl.textColor = kLYQGray;
    _companyLbl.text = @"北京博信会展旅行社";
    
    [_companyLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_nameLbl.mas_right).offset(kWScale(20));
        make.centerY.equalTo(_iconImgv);
    }];
    
    
    
}

@end
